package com.config.controller;

import com.config.entity.TbSpecification;
import com.config.service.TbSpecificationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
@RestController
@RequestMapping("/classes")
public class TbSpecificationController {
    @Autowired
    private TbSpecificationService tbSpecificationService;
    @GetMapping("/list")
    public List<TbSpecification> findClasses(){
        return tbSpecificationService.findTbSpecification();
    }
}
